1c33646932be35eae1a3723794c081b88920b6fa,webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java,BundlesServlet,bundleInfo,#JSONWriter#Bundle#boolean#,357
Before Change
jw.key( "hasStop" );
jw.value( hasStop( bundle ) );
jw.key( "hasUpdate" );
jw.value( hasUpdate( bundle ) );
jw.key( "hasUninstall" );
jw.value( hasUninstall( bundle ) );
After Change
jw.key( "actions" );
jw.array();
if ( bundle.getBundleId() == 0 )
{
jw.value( false );
jw.value( false );
jw.value( false );
jw.value( false );
}
else
{
action( jw, hasStart( bundle ), "start", "Start" );
action( jw, hasStop( bundle ), "stop", "Stop" );
action( jw, hasUpdate( bundle ), "update", "Update" );
action( jw, hasUninstall( bundle ), "uninstall", "Uninstall" );
}
jw.endArray();